package router

import (
	"ServerGo/controllers"
	"github.com/go-martini/martini"
	"github.com/martini-contrib/binding"
)

func Register(m *martini.ClassicMartini) {
	m.Post("/composerMerge.php", binding.Bind(controllers.EmptyParams{}), controllers.ComposerMergeResponse)
	m.Post("/back2PrevResponse.php", binding.Bind(controllers.EmptyParams{}), controllers.Back2PrevResponse)
	m.Post("/onlineResponse.php", binding.Bind(controllers.EmptyParams{}), controllers.OnlineResponse)
	m.Post("/testResponse.php", binding.Bind(controllers.TestParams{}), controllers.TestResponse)
}
